Skip to content

Conversation

@davidjbradshaw
Copy link
Owner

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds automatic teardown of event listeners in the child page and standardizes console styling for observer attach/detach logs.

  • Introduces a child-scoped listeners helper that tracks teardown callbacks.
  • Switches child code to use the new listener helpers and tweaks READY_STATE_CHANGE handling.
  • Updates observer logs to use styled console output with HIGHLIGHT/FOREGROUND.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
packages/child/listeners.js New listener helpers that auto-register teardown callbacks and log add/remove operations
packages/child/index.js Uses new listener helpers, updates READY_STATE_CHANGE logic, adds setup console event, adjusts setup order and removes some inline logging
packages/child/observers/visibility.js Adds styled logging via HIGHLIGHT/FOREGROUND
packages/child/observers/resize.js Adds styled logging via HIGHLIGHT/FOREGROUND
packages/child/observers/perf.js Adds styled logging via HIGHLIGHT/FOREGROUND
packages/child/observers/overflow.js Adds styled logging for detach via HIGHLIGHT
packages/child/observers/mutation.js Switches to styled logging, but missing required imports for style tokens
packages/child/observers/utils.js Adjusts log message to add styling, but missing required imports for style tokens

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@davidjbradshaw davidjbradshaw merged commit 0c841f1 into master Oct 18, 2025
7 checks passed
@davidjbradshaw davidjbradshaw deleted the detach_listeners branch October 18, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant